﻿###########
## Generic Holy Site Buildings
###########

holy_site_cathedral_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_cathedral_generic_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_cologne_cathedral.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		scope:holder = {
			culture = {
				has_innovation = innovation_crop_rotation
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		holy_order_hire_cost_mult = -0.15
		clergy_opinion = 5
		monthly_county_control_change_factor = 0.05
	}
	
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

holy_site_mosque_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_cathedral_muslim.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		scope:holder = {
			culture = {
				has_innovation = innovation_crop_rotation
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		domain_tax_different_faith_mult = 0.15
		levy_reinforcement_rate_same_faith = 0.15
		monthly_county_control_change_factor = 0.05
	}
	
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

holy_site_pagan_grand_temple_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_cathedral_pagan_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_cathedral_pagan.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		scope:holder = {
			culture = {
				has_innovation = innovation_crop_rotation
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		knight_effectiveness_mult = 0.15
		levy_reinforcement_rate = 0.1
		monthly_county_control_change_factor = 0.05
	}
	
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	levy = 500
	
	ai_value = {
		base = 100
	}
	
	type = special
}

holy_site_indian_grand_temple_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_brihadeeswarar_temple_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_cathedral_indian.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		scope:holder = {
			culture = {
				has_innovation = innovation_crop_rotation
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		different_faith_opinion = 5
		different_faith_county_opinion_mult = -0.15
		monthly_county_control_change_factor = 0.05
	}
	
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

holy_site_other_grand_temple_01 = {
	asset = {
		type = pdxmesh
		name = "building_special_cathedral_generic_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_cathedral_zoroastric.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		scope:holder = {
			culture = {
				has_innovation = innovation_crop_rotation
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		men_at_arms_maintenance = -0.025
		short_reign_duration_mult = -0.1
		monthly_county_control_change_factor = 0.05
	}
	
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Mahabodhi Temple
##########

holy_site_mahabodhi_temple_01 = {
	
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_mahabodhi_temple.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 1
		monthly_dynasty_prestige_mult = 0.05
		learning_per_piety_level = 1
		different_faith_opinion = 2
		religious_vassal_opinion = 5
		different_faith_county_opinion_mult = -0.2
	}
	
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Imam Ali Mosque
##########

holy_site_imam_ali_mosque_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_imam_ali_mosque.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 1
		monthly_dynasty_prestige_mult = 0.05
		monthly_county_control_change_factor = 0.1
		same_faith_opinion = 2
	}
	
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Great Mosque of Mecca
##########

holy_site_great_mosque_of_mecca_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_great_mosque_of_mecca_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_great_mosque_of_mecca.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 1
		monthly_dynasty_prestige_mult = 0.05
		men_at_arms_maintenance = -0.1
		monthly_county_control_change_factor = 0.1
		same_faith_opinion = 3
	}
	
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Great Mosque of Cordoba
##########

holy_site_great_mosque_of_cordoba_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_great_mosque_of_cordoba.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_christian_or_holy_site_trigger
			OR = {
				scope:holder = {
					faith = { religion_tag = islam_religion }
				}
				scope:holder = {
					faith = { religion_tag = christianity_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		different_culture_opinion = 2
		character_capital_county_monthly_development_growth_add = 0.2
		monthly_piety = 0.5
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		tax_mult = 0.2
		levy_size = 0.15
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Great Mosque of Djenne
##########

holy_site_great_mosque_of_djenne_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_great_mosque_of_djenne_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_great_mosque_of_cordoba.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		OR = {
			scope:holder = {
				faith = { religion_tag = islam_religion }
			}
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_or_holy_site_trigger
			OR = {
				scope:holder = {
					faith = { religion_tag = islam_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		build_gold_cost = -0.15
		monthly_piety = 1
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		tax_mult = 0.15
		levy_size = 0.15
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Great Mosque of Samarra
##########

holy_site_great_mosque_of_samarra_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_great_mosque_of_samarra.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		OR = {
			scope:holder = {
				faith = { religion_tag = islam_religion }
			}
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_or_holy_site_trigger
			OR = {
				scope:holder = {
					faith = { religion_tag = islam_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		build_gold_cost = -0.1
		build_speed = -0.1
		monthly_piety = 0.3
	}
	
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Cologne Cathedral
##########

holy_site_cologne_cathedral_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_cologne_cathedral.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		OR = {
			scope:holder = {
				faith = { religion_tag = christianity_religion }
			}
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
		scope:holder = {
			culture = {
				has_innovation = innovation_crop_rotation
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_christian_or_holy_site_trigger
			OR = {
				scope:holder = {
					faith = { religion_tag = christianity_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety_gain_mult = 0.15
		monthly_dynasty_prestige_mult = 0.05
		monthly_piety_gain_per_knight_add = 0.1
		knight_effectiveness_mult = 0.2
		monthly_county_control_change_factor = 0.05
	}
	
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Canterbury Cathedral
##########

holy_site_canterbury_cathedral_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_canterbury_cathedral.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		OR = {
			scope:holder = {
				faith = { religion_tag = christianity_religion }
			}
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
		scope:holder = {
			culture = {
				has_innovation = innovation_crop_rotation
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_christian_or_holy_site_trigger
			OR = {
				scope:holder = {
					faith = { religion_tag = christianity_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.3
		monthly_dynasty_prestige_mult = 0.05
		monthly_county_control_change_factor = 0.05
		monthly_piety_gain_per_happy_powerful_vassal_add = 0.2
	}
	
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Prophetic Mosque
##########

holy_site_prophetic_mosque_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_cathedral_muslim.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		OR = {
			scope:holder = {
				faith = { religion_tag = islam_religion }
			}
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_or_holy_site_trigger
			OR = {
				scope:holder = {
					faith = { religion_tag = islam_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.5
		county_opinion_add = 5
		holy_order_hire_cost_mult = -0.15
		knight_effectiveness_mult = 0.2
	}
	
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
		supply_limit_mult = 0.5
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Doge's Palace
##########

doges_palace_01 = { # Should technically be burnt down/rebuilt, but this is mostly here to make Venice awesome, so...
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_doges_palace.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		scope:holder = {
			has_government = republic_government
		}
	}
	
	cost_gold = 1000
	
	county_modifier = {
		development_growth_factor = 0.3		
		tax_mult = 0.5
		hostile_raid_time = 0.5
	}
	province_modifier = {
		
		defender_advantage = normal_building_advantage_tier_2
		fort_level = good_building_fort_level_tier_2
		garrison_size = 0.5
		levy_size = 1
		defender_advantage = 10
	}	
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Walls of Genoa
##########

walls_of_genoa_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_walls_of_genoa.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 1000
	
	county_modifier = {
		development_growth_factor = 0.3		
		tax_mult = 0.2
		hostile_raid_time = 0.5
	}
	
	province_modifier = {		
		defender_advantage = normal_building_advantage_tier_2
		fort_level = good_building_fort_level_tier_2
		garrison_size = 0.25
		levy_size = 0.25
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Visby Ringmur
##########

visby_ringmur_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_visby_ringmur.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_battlements
		}
	}
	
	cost_gold = 1000
	
	county_modifier = {
		development_growth_factor = 0.15	
		tax_mult = 0.15
		county_opinion_add = 5
		hostile_raid_time = 0.5
	}
	
	province_modifier = {		
		defender_advantage = normal_building_advantage_tier_1
		fort_level = good_building_fort_level_tier_1
		garrison_size = 0.25
		levy_size = 0.25
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Walls of Benin
##########

walls_of_benin_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_walls_of_benin.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 1000
	
	county_modifier = {
		levy_size = 0.5
		defender_advantage = 5
		development_growth_factor = 0.75
		
		tax_mult = 0.2
		hostile_raid_time = 0.5
	}
	
	province_modifier = {
		garrison_size = 0.5
		fort_level = 2
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Theodosian Walls
##########

theodosian_walls_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_theodosian_walls.dds"
	
	can_construct_potential = {
		barony = title:b_constantinople
		building_requirement_tribal = no
	}
	
	cost_gold = 3000
	
	duchy_capital_county_modifier = {
		tax_mult = 0.2
	}
	province_modifier = {		
		defender_advantage = normal_building_advantage_tier_2
		fort_level = 5
		garrison_size = 2
		levy_size = 0.5
	}
	county_modifier = {
		
		development_growth_factor = 0.3
		levy_size = 3
		tax_mult = 3
		hostile_raid_time = 0.5
	}
	
	ai_value = {
		base = 100
	}
	
	type = duchy_capital
}

##########
# Aurelian Walls
##########

aurelian_walls_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_aurelian_walls.dds"
	
	can_construct_potential = {
		barony = title:b_roma
		building_requirement_tribal = no
	}
	
	cost_gold = 3000
	
	duchy_capital_county_modifier = {
		levy_size = 0.15
		tax_mult = 0.15
	}
	county_modifier = {
		
		development_growth_factor = 0.15
		hostile_raid_time = 0.5
	}
	province_modifier = {		
		defender_advantage = normal_building_advantage_tier_2
		fort_level = good_building_fort_level_tier_2
		garrison_size = 1
		levy_size = 0.5
	}
	
	ai_value = {
		base = 100
	}
	
	type = duchy_capital
}

##########
# The Colosseum
##########

the_colosseum_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_colosseum_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_colosseum.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	character_modifier = {
		army_maintenance_mult = -0.05 # 'Stealing' the metal from the colosseum building itself
	}
	
	province_modifier = {
		build_speed = -0.1 # 'Stealing' the metal from the colosseum building itself
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Iron Pillar of Delhi
##########

iron_pillar_of_delhi_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_iron_pillar_of_delhi.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	character_modifier = {
		monthly_prestige_gain_mult = 0.05
		army_maintenance_mult = -0.05
		heavy_infantry_toughness_mult = 0.1
		heavy_cavalry_toughness_mult = 0.1
	}
	county_modifier = {
		
		development_growth_factor = 0.15
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}



##########
# Iron Pillar of Dhar
##########

iron_pillar_of_dhar_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_iron_pillar_of_dhar.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 2000

	character_modifier = {
		advantage = 5
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		
		levy_size = 0.15
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# The Pyramids
##########

the_pyramids_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_pyramids_giza_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_the_pyramids.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		short_reign_duration_mult = -0.2
	}
	county_modifier = {
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Stonehenge
##########

stonehenge_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_stonehenge_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_stonehenge.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	character_modifier = {
		learning = 2
		monthly_learning_lifestyle_xp_gain_mult = 0.15
		faith_conversion_piety_cost_mult = -0.2
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Offa's Dyke
##########

offas_dyke_01 = { # For Matt Frary

	construction_time = very_slow_construction_time

	type_icon = "icon_building_palisades.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	province_modifier = {
		defender_advantage = normal_building_advantage_tier_1
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Hadrian's Wall
##########

hadrians_wall_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_hadrians_wall.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	province_modifier = {
		build_gold_cost = -0.1
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Petra
##########

petra_01 = {
	asset = {
		type = pdxmesh
		name = "building_special_petra_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_petra.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	county_modifier = {
		tax_mult = 0.2
		supply_limit_mult = 0.25
		
		development_growth_factor = 0.3
	}
	
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Buddhas of Bamian
##########

buddhas_of_bamian_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_buddhas_of_bamiyan.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			scope:holder = {
				religion = { is_in_family = rf_eastern }
			}
		}
	}
	
	cost_gold = 3000

	character_modifier = {
		monthly_piety_gain_mult = 0.1
		diplomacy_per_piety_level = 1
	}
	county_modifier = {
		tax_mult = 0.1
		
		development_growth_factor = 0.75
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Alhambra
##########

alhambra_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_alhambra.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	province_modifier = {
		defender_advantage = normal_building_advantage_tier_1
		fort_level = good_building_fort_level_tier_1
		garrison_size = 0.25
		levy_size = 0.25
	}
	
	next_building = alhambra_02
	
	ai_value = {
		base = 100
	}
	
	type = special
}

alhambra_02 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_alhambra.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings
		}
	}
	
	cost_gold = 2000

	character_modifier = {
		monthly_prestige_gain_mult = 0.10
	}
	province_modifier = {
		defender_advantage = normal_building_advantage_tier_4
		fort_level = good_building_fort_level_tier_4
		garrison_size = 0.5
		levy_size = 0.5
	}
	county_modifier = {
		
		development_growth_factor = 0.35
		monthly_county_control_change_add = 1
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Citadel of Aleppo
##########

citadel_of_aleppo_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_the_citadel_of_aleppo.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000
	
	character_modifier = {
		monthly_prestige = 0.1
	}
	
	province_modifier = {
		defender_advantage = normal_building_advantage_tier_1
		fort_level = good_building_fort_level_tier_1
		garrison_size = 0.25
		levy_size = 0.25
	}
	
	next_building = citadel_of_aleppo_02
	
	ai_value = {
		base = 100
	}
	
	type = special
}

citadel_of_aleppo_02 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_the_citadel_of_aleppo.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings
		}
	}
	
	cost_gold = 1500

	character_modifier = {
		monthly_prestige = 0.3
	}

	province_modifier = {
		defender_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_3
		garrison_size = 0.5
		levy_size = 0.5
	}
	county_modifier = {
		
		development_growth_factor = 0.155
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# House of Wisdom
##########

house_of_wisdom_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_grand_library_of_baghdad.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	character_modifier = {
		learning_per_prestige_level = 2
		monthly_lifestyle_xp_gain_mult = 0.15
		different_culture_opinion = 10
		cultural_head_fascination_mult = 0.15
		faith_creation_piety_cost_mult = -0.2
	}
	county_modifier = {
		tax_mult = 0.2
		
		development_growth_factor = 0.3
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# The Tower of London
##########

the_tower_of_london_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_tower_of_london_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_tower_of_london.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_battlements
		}
	}
	
	cost_gold = 2000

	character_modifier = {
		dread_gain_mult = 0.3
	}
	province_modifier = {
		
		defender_advantage = normal_building_advantage_tier_2
		fort_level = good_building_fort_level_tier_2
		garrison_size = 0.5
		levy_size = 0.5
	}
	county_modifier = {
		
		development_growth_factor = 0.3
		tax_mult = 0.2
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Notre Dame
##########

notre_dame_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_notre_dame_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_notre_dame.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		scope:holder = {
			faith = { religion_tag = christianity_religion }
			culture = {
				has_innovation = innovation_windmills
			}
		}
	}
	
	is_enabled = {
		scope:holder = {
			faith = { religion_tag = christianity_religion }
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 1
		stewardship_per_piety_level = 1
		monthly_dynasty_prestige_mult = 0.05
	}
	county_modifier = {
		county_opinion_add = 5
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Brihadeeswarar Temple
##########

brihadeeswarar_temple_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_brihadeeswarar_temple_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_brihadeeswarar_temple.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		scope:holder = {
			culture = {
				has_innovation = innovation_manorialism
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			scope:holder = {
				religion = { is_in_family = rf_eastern }
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		same_faith_opinion = 5
		stewardship_per_piety_level = 1
	}
	
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Shwedagon Pagoda
##########

shwedagon_pagoda_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_shwedagon_pagoda.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
	}
	
	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			scope:holder = {
				religion = { is_in_family = rf_eastern }
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.5
		clergy_opinion = 5
		tyranny_gain_mult = -0.1
		monthly_dynasty_prestige_mult = 0.05
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Ananda Temple
##########

ananda_temple_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_shwedagon_pagoda.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
	}
	
	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			scope:holder = {
				religion = { is_in_family = rf_eastern }
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		learning = 2
		monthly_piety_gain_mult = 0.05
		county_opinion_add = 5
		monthly_county_control_change_factor = 0.1
	}

	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# The Friday Mosque
##########

the_friday_mosque_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_the_friday_mosque.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		scope:holder = {
			faith = { religion_tag = islam_religion }
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_or_zoroastrian_or_holy_site_trigger
			OR = {
				scope:holder = {
					faith = { religion_tag = islam_religion }
				}
				scope:holder = {
					faith = { religion_tag = zoroastrianism_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		piety_level_impact_mult = 0.5
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Khajuraho
##########

khajuraho_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_khajuraho_temples.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
	}
	
	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			scope:holder = {
				religion = { is_in_family = rf_eastern }
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		different_faith_opinion = 2
		faith_conversion_piety_cost_mult = -0.2
		monthly_piety_gain_per_happy_powerful_vassal_mult = 0.05
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Palace of Aachen
##########

palace_of_aachen_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_palace_of_aachen_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_palace_of_achen.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		powerful_vassal_opinion = 5
		clergy_opinion = 5
		monthly_prestige_gain_per_happy_powerful_vassal_add = 0.1
		tyranny_gain_mult = -0.2
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		
		tax_mult = 0.2
		
		development_growth_factor = 0.3		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Hagia Sophia
##########

hagia_sophia_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_hagia_sophia_mesh"
	}
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_hagia_sophia.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		intrigue_per_prestige_level = 2
		learning = 2
		knight_limit = 2
		knight_effectiveness_mult = 0.2
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		
		tax_mult = 0.2
		
		development_growth_factor = 0.3		
	}
	
	ai_value = {
		base = 100
	}
	
	next_building = hagia_sophia_02
	
	type = special
}

hagia_sophia_02 = {

	asset = {
		type = pdxmesh
		name = "building_special_hagia_sophia_minarets_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_hagia_sophia.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		scope:holder = {
			faith = { religion_tag = islam_religion }
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_or_holy_site_trigger
			OR = {
				scope:holder = {
					faith = { religion_tag = islam_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000
	cost_piety = 1000

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		intrigue_per_prestige_level = 2
		learning = 2
		knight_limit = 2
		knight_effectiveness_mult = 0.2
		monthly_dynasty_prestige_mult = 0.05
	}

	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Dome of the Rock / Temple in Jerusalem
##########

dome_of_the_rock_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_dome_of_the_rock.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		NOT = { scope:holder.faith = { religion_tag = judaism_religion } }
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety_gain_per_knight_mult = 0.03
		monthly_dynasty_prestige_mult = 0.05
		monthly_county_control_change_factor = 0.1
		martial_per_piety_level = 1
		knight_effectiveness_mult = 0.2
	}
	
	county_modifier = {
		tax_mult = 0.3
		development_growth_factor = 0.3
		
	}
	
	
	ai_value = {
		base = 100
	}
	
	next_building = temple_in_jerusalem_01
	
	type = special
}

temple_in_jerusalem_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_temple_in_jerusalem.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		scope:holder.faith = { religion_tag = judaism_religion }
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_jewish_or_holy_site_trigger
			OR = {
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
				scope:holder = {
					faith = { religion_tag = judaism_religion }
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety_gain_per_knight_mult = 0.03
		monthly_dynasty_prestige_mult = 0.05
		monthly_county_control_change_factor = 0.1
		martial_per_piety_level = 1
		learning_per_prestige_level = 2
		knight_effectiveness_mult = 0.2
		same_faith_opinion = 5
	}
	
	county_modifier = {
		tax_mult = 0.3
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Hall of Heroes
##########

hall_of_heroes_01 = {

	type_icon = "icon_building_hall_of_heroes.dds"
	
	levy = 150
	garrison = 75
	cost_gold = 0
	construction_time = 0

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		prowess = 1
		knight_effectiveness_mult = 0.05
	}

	is_enabled = {
		building_hall_of_heroes_requirement = yes
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}
	
	next_building = hall_of_heroes_02

	ai_value = {
		base = 100
	}
	
	type = special
}

hall_of_heroes_02 = {

	type_icon = "icon_building_hall_of_heroes.dds"
	
	levy = 265
	garrison = 110
	cost_gold = 225
	construction_time = 500

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		prowess = 1
		knight_effectiveness_mult = 0.1
	}

	is_enabled = {
		building_hall_of_heroes_requirement = yes
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}

	
	next_building = hall_of_heroes_03

	ai_value = {
		base = 100
	}
	
	type = special
}

hall_of_heroes_03 = {

	type_icon = "icon_building_hall_of_heroes.dds"
	
	levy = 375
	garrison = 150
	cost_gold = 300
	construction_time = 500

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		prowess = 1
		knight_effectiveness_mult = 0.15
	}

	is_enabled = {
		building_hall_of_heroes_requirement = yes
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}

	
	next_building = hall_of_heroes_04

	ai_value = {
		base = 100
	}
	
	type = special
}

hall_of_heroes_04 = {

	type_icon = "icon_building_hall_of_heroes.dds"
	
	levy = 500
	garrison = 225
	cost_gold = 375
	construction_time = 500

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		prowess = 1
		knight_effectiveness_mult = 0.2
	}

	is_enabled = {
		building_hall_of_heroes_requirement = yes
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}

	
	next_building = hall_of_heroes_05

	ai_value = {
		base = 100
	}
	
	type = special
}

hall_of_heroes_05 = {

	type_icon = "icon_building_hall_of_heroes.dds"
	
	levy = 700
	garrison = 260
	cost_gold = 450
	construction_time = 500

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		prowess = 1
		knight_effectiveness_mult = 0.25
	}

	is_enabled = {
		building_hall_of_heroes_requirement = yes
		building_disable_if_vastly_over_domain_limit_trigger = yes
	}

	
	ai_value = {
		base = 100
	}
	
	type = special
}

##########
# Universities
##########

generic_university = {
	construction_time = very_slow_construction_time

	type_icon = "icon_building_university.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		building_university_requirement = yes
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		learning_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.05
		monthly_dynasty_prestige = 0.25
	}
	
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

al_azhar_university = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_al-azhar_university.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		building_university_requirement = yes
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		learning_per_prestige_level = 1
		diplomacy_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.1
		monthly_dynasty_prestige = 0.25
	}
	
	county_modifier = {
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

sankore_university = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_the_university_of_sankore.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		building_university_requirement = yes
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		learning_per_prestige_level = 1
		martial_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.1
		monthly_dynasty_prestige = 0.25
	}
	
	county_modifier = {
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

siena_university = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_university_of_siena.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		building_university_requirement = yes
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		learning_per_prestige_level = 1
		intrigue_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.1
		monthly_dynasty_prestige = 0.25
	}
	
	county_modifier = {
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

nalanda_university = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_nalanda.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		building_university_requirement = yes
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		learning_per_prestige_level = 1
		stewardship_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.1
		monthly_dynasty_prestige = 0.25
	}
	
	county_modifier = {
		development_growth_factor = 0.3
		
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

########
#sicilian_parliament
########

special_sicilian_parliament_01 = {
	construction_time = very_slow_construction_time
	
	is_enabled = {
		is_county_capital = yes
		has_variable = variable_sicilian_parliament_county
	}

	cost_gold = 1500
	county_modifier = {
		monthly_county_control_change_add = 1
		county_opinion_add = 5		
		tax_mult = 0.2
		
		development_growth_factor = 0.3		
	}
	character_modifier = {
		monthly_prestige = 0.75
	}

	type_icon = "icon_building_generic_house.dds"
	
	ai_value = {
		base = 100
		modifier = {
			factor = 0
			scope:holder = {
				has_government = theocracy_government
			}
		}
	}
	
	type = special
}

